<?php
class TrainModel extends Orm_Base{
    public $table = 'train';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'w_id' => array('type' => "int(11) unsigned",'comment' => '关联护工ID'),
        'train_type' => array('type' => "tinyint(1)",'coment' => '培训类型(1.集中、2.自学、3.网络)'),
        'train_date' => array('type' => "varchar(50)",'coment' => '培训时间'),
        'train_company' => array('type' => "varchar(50)",'comment' => '培训机构'),
        'train_name' => array('type' => "varchar(50)",'comment' => '培训名称'),
        'is_certificate' => array('type' => "tinyint(1)",'comment' => '是否获得证书(1.是、2.否)'),
        'description' => array('type' => "varchar(200)",'comment' => '培训内容'),
        'remarks' => array('type' => "varchar(200)",'comment' => '备注'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
    //培训类型
    public $tTraintype = array(
        '1' => '集中',
        '2' => '自学',
        '3' => '网络',
    );
    //是否获得证书
    public $tIscertificate = array(
        '1' => '是',
        '2' => '否',
    );
} 
?>
